
#include <iostream>
#include <string>
 

int main(void)

{
	using namespace std;
	
	cout<< "Enter a word:";
	string word;
	char temp;
	
	cin >> word;
	int i,j;
	for (j = 0, i = word.size() - 1; j < i; --i, j++)
	{
		temp = word[i];
		word[i] = word[j];
		word[j] = temp;
	}  
	cout << word << "\nDone\n";
    return 0;
}


